package com.bjpowernode.mappers;

import com.bjpowernode.annotations.DataScope;
import com.bjpowernode.entities.TClue;
import com.bjpowernode.querys.BaseQuery;
import com.bjpowernode.excels.ClueExcel;
import com.bjpowernode.querys.NameValueDataQuery;

import java.util.List;

public interface TClueMapper {
    TClue selectById(Integer id);

    @DataScope(tableAlias = "tc", columnName = "owner_id")
    List<TClue> selectByPage(BaseQuery baseQuery);

    Integer selectTotalClueCount();

    List<NameValueDataQuery> selectClueSourceCount();

    int insert(TClue record);

    int insertSelective(TClue record);

    int updateById(TClue record);

    int updateByIdSelective(TClue record);

    int deleteById(Integer id);

    void saveExcel(List<ClueExcel> clueDataList);
}